<script setup>
import ParentCom from './CompDemo/ParentCom.vue';
import { ref, onMounted } from 'vue'
const comRef = ref(null)

onMounted(() => {
  console.log(comRef.value);
  
})

</script>


<template>
  <div>
 <ParentCom ref="comRef"></ParentCom>
  <button @click="comRef.addCount">点击</button>
  </div>
</template>



<style lang="scss" scoped>

</style>